<?php

abstract class Entity extends DomObj implements IEntity
{

  /**
   * (non-PHPdoc)
   * @see simplify/kernel/data/DataHolder#getAll()
   */
  public function getAll()
  {
    $data = parent::getAll();
    $data['uid'] = $this->getUid();
    return $data;
  }

  /**
   * (non-PHPdoc)
   * @see simplify/kernel/domain/api/IDomObj#getDefinition()
   * @return IEntityDefinition
   */
  public function getDefinition()
  {
    return parent::getDefinition();
  }

  /**
   * (non-PHPdoc)
   * @see simplify/kernel/domain/api/IEntity#getId()
   */
  public function getId()
  {
    return $this->get($this->getDefinition()->getPk());
  }

}

?>